//
//  ZZNetworkTool.h
//  ZuZuBao
//
//  Created by Felix on 2024/4/8.
//

#import <AFNetworking/AFNetworking.h>
#import "AFHTTPSessionManager.h"

NS_ASSUME_NONNULL_BEGIN

#define kFFNetManager        [ZZNetworkTool sharedManager]

/**< 请求类型 */
typedef NS_ENUM(NSInteger, ZZNetRequestType) {
    /// post请求
    ZZNetRequestTypePost          = 0,
    /// get请求
    ZZNetRequestTypeGet           = 1
};
/**< 请求回调 */
typedef void(^ResultBlock)(id result, NSError *error);

@interface ZZNetworkTool : AFHTTPSessionManager

@property (nonatomic, strong)  NSURLSessionDataTask *task;


+ (ZZNetworkTool *)Share;

+(AFHTTPSessionManager *)sharedManager;

@end

NS_ASSUME_NONNULL_END
